package cn.blackpears.modelprotection;

import org.bukkit.block.Block;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractEvent;

public class Verification implements Listener {
    public static String BTN;
    @EventHandler(priority=EventPriority.LOWEST)
    public void RightClickBlock(PlayerInteractEvent e) {
        if (e.getAction().name().equalsIgnoreCase("RIGHT_CLICK_BLOCK")) {
            String Chest = e.getClickedBlock().getType().name();
            this.BTN = Chest;
        }
    }
}

